چاپ کد اسکی (++C)
#include
#include
using namespace std;
int main()
{
cout << "********************************************************" << endl;
cout << " smartdevelop.ir" << endl;
cout << "********************************************************" << endl;
char ch;
for (ch = -128;ch<127;ch++)
cout << "character=" << ch
<< "\tASCII Code=" << (int)ch << "\n";
cout << "character=" << ch << "\tASCII Code=" << (int)ch << endl;
getch();
return 0;
}
از کتابخانه های conio.h و iostram استفاده کنید .
سورس : دانلود
نظرات شما عزیزان: